package com.yxw.live_vod_backend_boot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 商品添加DTO类 ProductAddDTO
 *
 * @author xiexuxin
 * @date 2023-12-07
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="ProductAddDTO", description="商品添加")
public class ProductAddDTO {

    @ApiModelProperty("商品主图")
    private String[] productMasterPic;

    @ApiModelProperty("商品详图")
    private String[] productDetailPic;

    @ApiModelProperty("商品名称/商品标题")
    private String productName;

    @NotBlank(message = "用户ID不能为空")
    @ApiModelProperty("用户ID")
    private String userId;

    @NotBlank(message = "店铺Id不能为空")
    @ApiModelProperty("店铺Id")
    private String shopId;

    @NotBlank(message = "类目Id不能为空")
    @ApiModelProperty("类目Id")
    private String categoryId;

    @ApiModelProperty("购买须知")
    private String purchaseNotes;

    @ApiModelProperty("备注")
    private String remark;

    @NotBlank(message = "图片业务ID不能为空")
    @ApiModelProperty("图片业务ID")
    private String picBussId;

    @ApiModelProperty("商品批量新增")
    private List<ProductAddsDTO> addsDTO;

}
